using Microsoft.EntityFrameworkCore;
using Test.Models;
namespace Test.Db
{
    public class TestDb :DbContext
    {
        private readonly string _conString="server=.;database=TestDb;uid=sa;pwd=123456;";
   
        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
                builder.UseSqlServer(_conString);
        }
        public DbSet<Commodity> Commoditie {get;set;}
        public DbSet<Category> Categories{get;set;}
    }
}


